import { createStore,applyMiddleware } from 'redux'
// createStore是一个函数可以生成一个redux状态管理器 createStore(reducer,middleWara)
import reducers from './reducers'
import thunk from 'redux-thunk'
export default createStore(reducers, applyMiddleware(thunk))